package com.ccrfid.rmc6.entity.business.nightpatrol;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "np_result")
public class NpResultEntity {
    private Long id;
    private Long groupId;
    private String groupName;
    private int resultStatus;
    private String startPatrolPlace;
    private Long startPatrolPlaceId;
    private String endPatrolPlace;
    private Long endPatrolPlaceId;
    private Timestamp startTime;
    private Timestamp endTime;
    private Timestamp recordTime;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    @Basic
    @Column(name = "group_id")
    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }


    @Basic
    @Column(name = "group_name", nullable = false, length = 45)
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Basic
    @Column(name = "result_status")
    public Integer getResultStatus() {
        return resultStatus;
    }

    public void setResultStatus(Integer resultStatus) {
        this.resultStatus = resultStatus;
    }


    @Basic
    @Column(name = "start_patrol_place", nullable = false, length = 255)
    public String getStartPatrolPlace() {
        return startPatrolPlace;
    }

    public void setStartPatrolPlace(String startPatrolPlace) {
        this.startPatrolPlace = startPatrolPlace;
    }

    @Basic
    @Column(name = "start_patrol_place_id")
    public Long getStartPatrolPlaceId() {
        return startPatrolPlaceId;
    }

    public void setStartPatrolPlaceId(Long startPatrolPlaceId) {
        this.startPatrolPlaceId = startPatrolPlaceId;
    }


    @Basic
    @Column(name = "end_patrol_place", nullable = false, length = 255)
    public String getEndPatrolPlace() {
        return endPatrolPlace;
    }

    public void setEndPatrolPlace(String endPatrolPlace) {
        this.endPatrolPlace = endPatrolPlace;
    }

    @Basic
    @Column(name = "end_patrol_place_id")
    public Long getEndPatrolPlaceId() {
        return endPatrolPlaceId;
    }

    public void setEndPatrolPlaceId(Long endPatrolPlaceId) {
        this.endPatrolPlaceId = endPatrolPlaceId;
    }


    @Basic
    @Column(name = "start_time", nullable = false)
    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }


    @Basic
    @Column(name = "end_time", nullable = false)
    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }


    @Basic
    @Column(name = "record_time", nullable = false)
    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

}
